<?php

function transform_xsl_stylesheet($xml, $xsl)
{
    $profiler = &Vault::Get('Debug_Profiling');


    $xsldoc = domxml_xslt_stylesheet_file($xsl);
    $data   = $xsldoc->result_dump_mem($xsldoc->process(domxml_open_mem($xml)));

    return $data;
}

?>